<ion-view title="商品列表">
    <ion-nav-buttons side="right">
        <a class="button button-icon icon ion-plus-round" href="#/app/addGoods/{{gid}}"></a>
    </ion-nav-buttons>
  <ion-content class="has-header" has-bouncing="true" overflow-scroll="false">
      <ion-refresher pulling-text="下拉刷新" refreshing-text="玩命加载中, 请稍候..." refreshing-icon="ion-loading-c" on-refresh="refresh()" >
      </ion-refresher>
      <div id="nullGoods" style="font-size: 18px;height: 300px;text-align: center;display: none">
          <span style="line-height: 300px">当前没有数据</span>
      </div>
      <ion-list>
          <div class="list" >

              <a class="item item-avatar" href="#/app/goodsPar/{{data._id}}" ng-repeat="data in datas">
                  <img ng-src="data:image/jpeg;base64,{{data.imgData}}">
                  <h2>{{data.name}}</h2>
                  <p style="color: #ffb108">￥{{data.price}}</p>
              </a>
          </div>
          <!--<ion-item ng-repeat="data in datas" href="#/app/goodsPar/{{data._id}}">-->

              <!--<div class="row" style="padding: 0px">-->
                  <!--<div class="col col-33"  style="padding: 0px">-->
                      <!--<img ng-src="data:image/jpeg;base64,{{data.imgData}}" style="width: 100%">-->
                  <!--</div>-->
                  <!--<div class="col"  style="padding: 0px;">-->
                    <!--<div style="padding: 10px">-->
                        <!--{{data.name}}-->
                    <!--</div>-->
                      <!--<div style="padding: 10px;padding-top: 20px">-->
                         <!--￥{{data.price}}-->
                      <!--</div>-->
                  <!--</div>-->
              <!--</div>-->
          <!--</ion-item>-->
      </ion-list>
      <ion-infinite-scroll ng-if="isMore" icon="ion-loading-c" on-infinite="loadMoreData()" distance="1%"></ion-infinite-scroll>
  </ion-content>
</ion-view>
